import apiAxios from "./Apiserver"
import mockAxios from "./MockServer"
//每一个函数对应着一个api
//getBaseCategoryList:三级分类对应的接口
//getBanners:轮播图对应的接口
//getFloors:楼层对应的接口
export const getBaseCategoryList = () => apiAxios.get("/product/getBaseCategoryList")
export const getBanners = () => mockAxios.get("/banners")
export const getFloors = () => mockAxios.get("/floors")

//search路由&detail路由对应的接口
//getGoods获取所有的商品
//getGoodDetail获取指定商品的详情
export const getGoods = options => apiAxios.post("/list",options)
export const getGoodDetail = skuid => apiAxios.get(`/item/${skuid}`)